<link rel="stylesheet" href="../core/resource/weui/weui.css">
<div class="order-list-page" ng-if="pagedata.op == 'list'">
    <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">预约总订单</div>
		<div class="fui-header-right"></div>
	</div>
	<div style="margin-top:58px"></div>
	<div id="tab" class="fui-tab fui-tab-danger">
        <a ng-class="{'external active': pagedata.status == ''}" href="javascript:" ng-click="access_json('list','');pagedata.status = ''">全部</a>
        <a ng-class="{'external active':pagedata.status == 0}" href="javascript:" ng-click="access_json('list','status=0');pagedata.status =0">待付款</a>
        <a ng-class="{'external active':pagedata.status == 1}" href="javascript:" ng-click="access_json('list','status=1');pagedata.status =1">已付款</a>
        <a ng-class="{'external active':pagedata.status == 2}" href="javascript:" ng-click="access_json('list','status=2');pagedata.status =2">待服务</a>
        <a ng-class="{'external active':pagedata.status == 3}" href="javascript:" ng-click="access_json('list','status=3');pagedata.status =3">已取消</a>
        <a ng-class="{'external active':pagedata.status == 4}" href="javascript:" ng-click="access_json('list','status=4');pagedata.status =4">已完成</a>
    </div>
	<div class='fui-content navbar order-list'>
	<div class="fui-list-group order-item" ng-repeat="item in pagedata.order_list">
                <a class="fui-list external" style="padding: 0.42rem 0.5rem" href="./index.php?i=1740&amp;c=entry&amp;m=ewei_shopv2&amp;do=mobile&amp;r=order.detail&amp;id=3025" data-nocache="true">
                    <div class="fui-list-inner">
                        <div class="subtitle"> 预约号: {{item.ordersn}}</div>
                    </div>
                    <div ng-show="item.status==0" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">待付款</div>
                    <div ng-show="item.status==1" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">已付款</div>
                    <div ng-show="item.status==2" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">待服务</div>
                    <div ng-show="item.status==3" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">已取消</div>
                    <div ng-show="item.status==4" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">已完成</div>
                    <div class="angle"></div>
                </a> 
                    <a href="" data-nocache="true">
                        <div class="fui-list-group-title lineblock">
                            <i class="icon jinyunicon icon-dianpu"></i> {{item.servename || '服务项目'}}
                            <span class="status noremark" style="font-size:0.50rem">套餐：<span style="color:#f60;">{{item.package.package_title || '默认套餐'}}</span></span>
                        </div>
                    </a>
                    <a href="javascript:;" ng-click="access_json('jy_meiye/worker_order/detail/id='+item.id)" class="external" data-nocache="true">
                        <div class="fui-list goods-list">
                            <div class="fui-list-media" style="">
                                <img class="" ng-src="{{tomedia(item.serve_image) || '../core/resource/images/nopic.jpg'}}">
                            </div>
                            <div class="fui-list-inner">
                                <div class="text goodstitle towline">{{item.serve_title || '服务名称'}}</div>
								<div class="text" style="color:#f60;font-size:0.50rem">预约时间：{{item.day}}:{{item.serve_time.times.start}}~{{item.serve_time.times.end}}</div>
                            </div>
                            <div class="fui-list-angle" style="width:4rem">
                                ￥<span class="marketprice">{{item.package.package_price || '0.00'}}</span></div>
                        </div>
                    </a>
                <div class="fui-list-group-title lineblock">
					<span style="color:#999;font-size:0.55rem"><i class="icon jinyunicon icon-shijian" style="color:#f60;font-size:0.50rem"></i> {{item.createtime}}</span>
                    <span class="status noremark">共 <span>1</span> 个服务 实付: <span class="text-danger">￥{{item.pay}}</span></span>
                </div>
            <div class="fui-list-group-title lineblock opblock">
				<span class="status noremark">
					<div ng-show="item.status == 0" class="btn btn-sm btn-default-o order-delete" href="javascript:" ng-click="post({},'del','id='+item.id)">删除预约</div>
					<div ng-show="item.status == 1" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="post({},'receive','id='+item.id)">接收预约</div>
				</span>
            </div>
        </div>
	</div>
	<div class="content-empty" ng-show="pagedata.order_list.length == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">您暂时没有预约！</p>
	</div>
</div>

<div class="order-list-page" ng-if="pagedata.op == 'today'">
    <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">今日预约</div>
		<div class="fui-header-right"></div>
	</div>
	<div style="margin-top:58px"></div>
	<div id="tab" class="fui-tab fui-tab-danger">
        <a ng-class="{'external active': pagedata.status == ''}" href="javascript:" ng-click="access_json('today','');pagedata.status = ''">全部</a>
        <a ng-class="{'external active':pagedata.status == 0}" href="javascript:" ng-click="access_json('today','status=0');pagedata.status =0">待付款</a>
        <a ng-class="{'external active':pagedata.status == 1}" href="javascript:" ng-click="access_json('today','status=1');pagedata.status =1">已付款</a>
        <a ng-class="{'external active':pagedata.status == 2}" href="javascript:" ng-click="access_json('today','status=2');pagedata.status =2">待服务</a>
        <a ng-class="{'external active':pagedata.status == 3}" href="javascript:" ng-click="access_json('today','status=3');pagedata.status =3">已取消</a>
        <a ng-class="{'external active':pagedata.status == 4}" href="javascript:" ng-click="access_json('today','status=4');pagedata.status =4">已完成</a>
    </div>
	<div class='fui-content navbar order-list'>
	<div class="fui-list-group order-item" ng-repeat="item in pagedata.order_list">
                <a class="fui-list external" style="padding: 0.42rem 0.5rem" href="./index.php?i=1740&amp;c=entry&amp;m=ewei_shopv2&amp;do=mobile&amp;r=order.detail&amp;id=3025" data-nocache="true">
                    <div class="fui-list-inner">
                        <div class="subtitle"> 预约号: {{item.ordersn}}</div>
                    </div>
                    <div ng-show="item.status==0" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">待付款</div>
                    <div ng-show="item.status==1" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">已付款</div>
                    <div ng-show="item.status==2" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">待服务</div>
                    <div ng-show="item.status==3" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">已取消</div>
                    <div ng-show="item.status==4" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">已完成</div>
                    <div class="angle"></div>
                </a> 
                    <a href="" data-nocache="true">
                        <div class="fui-list-group-title lineblock">
                            <i class="icon jinyunicon icon-dianpu"></i> {{item.servename || '服务项目'}}
                            <span class="status noremark" style="font-size:0.50rem">套餐：<span style="color:#f60;">{{item.package.package_title || '默认套餐'}}</span></span>
                        </div>
                    </a>
                    <a href="javascript:;" ng-click="access_json('jy_meiye/worker_order/detail/id='+item.id)" class="external" data-nocache="true">
                        <div class="fui-list goods-list">
                            <div class="fui-list-media" style="">
                                <img class="" ng-src="{{tomedia(item.serve_image) || '../core/resource/images/nopic.jpg'}}">
                            </div>
                            <div class="fui-list-inner">
                                <div class="text goodstitle towline">{{item.serve_title || '服务名称'}}</div>
								<div class="text" style="color:#f60;font-size:0.50rem">预约时间：{{item.day}}:{{item.serve_time.times.start}}~{{item.serve_time.times.end}}</div>
                            </div>
                            <div class="fui-list-angle" style="width:4rem">
                                ￥<span class="marketprice">{{item.package.package_price || '0.00'}}</span></div>
                        </div>
                    </a>
                <div class="fui-list-group-title lineblock">
					<span style="color:#999;font-size:0.55rem"><i class="icon jinyunicon icon-shijian" style="color:#f60;font-size:0.50rem"></i> {{item.createtime}}</span>
                    <span class="status noremark">共 <span>1</span> 个服务 实付: <span class="text-danger">￥{{item.pay}}</span></span>
                </div>
            <div class="fui-list-group-title lineblock opblock">
				<span class="status noremark">
					<div ng-show="item.status == 0" class="btn btn-sm btn-default-o order-delete" href="javascript:" ng-click="post({},'del','id='+item.id)">删除预约</div>
					<div ng-show="item.status == 1" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="post({},'receive','id='+item.id)">接收预约</div>
				</span>
            </div>
        </div>
	</div>
	<div class="content-empty" ng-show="pagedata.order_list.length == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">您暂时没有预约！</p>
	</div>
</div>
<div class="order-list-page" ng-if="pagedata.op == 'detail'">
    <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">预约详情</div>
		<div class="fui-header-right"></div>
	</div>
	<div class='fui-content member-page navbar'>
		<div class="fui-list-group merchgroup">
			<div class="fui-list jump">
                <a class="fui-list-media">
                    <img class="round" src="{{tomedia(pagedata.user.avatar) || '../core/resource/images/nopic.jpg'}}" />
                </a>
                <div class="fui-list-inner">
                    <div class="title">{{pagedata.user.realname || '匿名用户'}}</div>
					<div class="title" style="font-size:0.65rem">昵称：{{pagedata.user.nickname}}</div>
					<div class="title" style="font-size:0.65rem">手机号：{{pagedata.user.mobile}}</div>
                </div>
                <a class="jump" href="javascript:;">
					
				</a>
            </div>
		</div>
		<div class="weui_cells">
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>服务项目</span>
					</div>
					<div class="weui_cell_ft" ng-model="pagedata.post.serve_title">{{pagedata.serve.title}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>服务套餐</span>
					</div>
					<div class="weui_cell_ft" ng-model="pagedata.post.package_title">{{pagedata.order.package.package_title}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>预约时间</span>
					</div>
					<div class="weui_cell_ft" ng-model="pagedata.post.time">{{pagedata.order.day}}--{{pagedata.order.serve_time.times.start}}--{{pagedata.order.serve_time.times.end}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>服务费用</span>
					</div>
					<div class="weui_cell_ft" ng-model="pagedata.post.package_price">{{pagedata.order.package.package_price}}元</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>实际支付</span>
					</div>
					<div class="weui_cell_ft" ng-model="pagedata.post.package_price">{{pagedata.order.pay}}元</div>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script type="text/javascript">
	//scope.pagedata.status = -1;  //状态标记
</script>